package com.example.ssm.service.impl;

import com.example.ssm.bean.User;
import com.example.ssm.dao.UserDao;
import com.example.ssm.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Intellij IDEA.
 * User: JonnyJiang
 * Date: 2021/6/11
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserDao userDao;

    @Override
    public User getUserByName(String name) {
        return userDao.selectByName(name);
    }
}
